/*
 * author      : 吴中勤
 * date        : 2018/8/24
 * description : TODO
 */

package com.deepexi.adapter.config;

import com.deepexi.adapter.sdk.sap.SapSdk;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class SapSdkConfig {

    private static final Logger logger = LoggerFactory.getLogger(SapSdkConfig.class);

    @Value("${sap.sdk.profile}")
    private String sapSdkProfile;

    @Value("${sap.sdk.host}")
    private String sapSdkHost;

    @Value("${sap.sdk.name}")
    private String sapSdkName;

    @Value("${sap.sdk.password}")
    private String sapSdkPassword;

    @Bean
    public SapSdk sapsdk() {
        return new SapSdk(sapSdkProfile, sapSdkHost, sapSdkName, sapSdkPassword);
    }
}
